package com.bobochang.warehouse.service;

import com.bobochang.warehouse.dto.*;
import com.bobochang.warehouse.entity.Contract;
import com.bobochang.warehouse.entity.DailyConstruction;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bobochang.warehouse.entity.Result;
import com.bobochang.warehouse.page.Page;

import java.util.Date;
import java.util.List;

/**
* @author bobochang
* @description 针对表【daily_construction(每日施工情况表)】的数据库操作Service
* @createDate 2024-06-25 10:25:42
*/
public interface DailyConstructionService extends IService<DailyConstruction> {

    Page queryConstructionPage(Page page, ConstructionDetailsDto constructionDetails);

    /**
     * 汇总表
     */
    ConstructionDetailsCollectDto findCollect(Contract contract);

    Result add(NewConstructionDetailsDto newConstructionDetailsDto);

    Result updateConstruction(NewConstructionDetailsDto newConstructionDetailsDto);

    Result delete(Integer constructionId);

    List<ConstructionDetailsCollectDto> findCollectList(Contract contract);

    List<ProductCollectDto> collectProduct(String contractId, Date date);

    List<CollectSettleAccountsDto> collectSettleAccounts(String contractId, String startTime, String endTime);
}
